package com.yqyd.hy.service.impl;

import java.util.List;

import com.yqyd.hy.domain.HyGoodsPriceRecord;
import com.yqyd.hy.mapper.HyGoodsPriceRecordMapper;
import com.yqyd.hy.service.IHyGoodsPriceRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 商品价格记录Service业务层处理
 * 
 * @author Dhq
 * @date 2025-11-19
 */
@Service
public class HyGoodsPriceRecordServiceImpl implements IHyGoodsPriceRecordService
{
    @Autowired
    private HyGoodsPriceRecordMapper hyGoodsPriceRecordMapper;

    /**
     * 查询商品价格记录列表
     * 
     * @param hyGoodsPriceRecord 商品价格记录
     * @return 商品价格记录
     */
    @Override
    public List<HyGoodsPriceRecord> selectHyGoodsPriceRecordList(HyGoodsPriceRecord hyGoodsPriceRecord)
    {
        return hyGoodsPriceRecordMapper.selectHyGoodsPriceRecordList(hyGoodsPriceRecord);
    }

    /**
     * 新增商品价格记录
     * 
     * @param hyGoodsPriceRecord 商品价格记录
     * @return 结果
     */
    @Override
    public int insertHyGoodsPriceRecord(HyGoodsPriceRecord hyGoodsPriceRecord)
    {
        return hyGoodsPriceRecordMapper.insertHyGoodsPriceRecord(hyGoodsPriceRecord);
    }

}
